<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%> 
<html>
<head>  
  <script type="text/javascript">
  function doSearch() {	 
	  grid.load({
			super_bank_no: $('#super_bank_no').val(),
			bank_nm: $('#bank_nm').val() ,
			bank_addr: $('#bank_addr').val(),
			is_make: $('#is_make').val()
		});
  }
  
  function addSuperBank(url){	  
	  commonDetail(url,"save","superBankTableId");
  }
  function modifySuperBank(url){	  
	  commonDetail(url,"update","superBankTableId");
  }
  function deleteSuperBank(url){	  
	  commonDel(url,"delete","superBankTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#superBankTableId").jpgrid({
			url: "getSuperBankListJson.do",
			columns: [
				{title: "总行行号", field: "SUPER_BANK_NO"},
				{title: "银行名称", field: "BANK_NM"},
				{title: "银行地址", field: "BANK_ADDR"},
				{title: "是否使用", field: "IS_MAKE",width: 120}
			]
		});	  
  });
  </script>
</head>
<body class="easyui-layout list_body">
<form id="headBankForm" name="headBankForm">
	<div class="list_body_north" data-options="region:'north'" border="false">
	 	<!-- 查询表单 -->
	 	<div  class="datagrid-toolbar" border="false"  >
				<span>总行行号:</span>
				<input id="super_bank_no" type="text" name="super_bank_no"  class="easyui-textbox"  >
				<span>银行名称:</span>
				<input id="bank_nm" type="text" name="bank_nm"  class="easyui-textbox"  >
				<span>银行地址:</span>
				<input id="bank_addr" type="text" name="bank_addr"  class="easyui-textbox"  >
				<span>是否使用:</span>	
				<code:codeSelect id="is_make" name="is_make" code_type="bank_ismake" showSelect="true" selectId="${appInfSuperbankEntity.is_make}"></code:codeSelect>	
			 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a>
			 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>
		</div>
		<!-- 自定义标签工具栏 -->
		<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>
	</div>
	<div data-options="region:'center'" border="false" class="list_body_center">
		<!-- 表格 -->
	    <table id="superBankTableId" fit="true"></table>
    </div>
</form> 
</body>
</html>
